package com.yanu.trace.t2s.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.sql.Blob;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author whj
 * @since 2021-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Pig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 生猪ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 养殖地
     */
    private String breed_place;

    /**
     * 重量
     */
    private Double weight;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 性状
     */
    private String traits;

    /**
     * 检疫状态
     */
    private Integer check_status;

    /**
     * 检疫号
     */
    private String check_id;



    /**
     * 出栏日期
     */
    private Date out_date;

    /**
     * 备注
     */
    private String remark;
    /**
     * 所属企业id
     */
    private Integer enter_id;
    /**
     * 切割状态
     */
    private Integer cut_state;


    @TableField(exist=false)
    private Enterprise enterprise;

    @TableField(exist=false)
    private List<Pork> porks;




}
